// enum 枚举类型
enum NoYes{
    No,
    Yes
}

function toChinese(value:NoYes){
    switch(value){
        case NoYes.No:
            return '否'
        case NoYes.Yes:
            return '是'
    }
}

toChinese(NoYes.No)

const a1:{
    readonly name:string
} = {
    name:'ryf'
}

// a1.name='lai'

class Person{
    #name:string; // 
    constructor(name:string){
        this.#name=name;
    }
    greet(){
        console.log(`Hello nmy name ${this.#name}`)
    }
}

const tf=new Person('兄台')

// tf.#name;

